function WlCustProductVOJs(){
   this.id
   ; this.productCode
   ; this.equName
   ; this.productType
   ; this.model
   ; this.unit
   ; this.price
   ; this.weight
   ; this.volume
   ; this.level
   ; this.request
   ; this.remark
   ; this.codeID
   ; this.pack

}

function WlCustProductVOtoArray_fun(ulvo,edit){
            var querydata=new Array();
            var items = new Array();
            var ul=new Array();
            var ulo="";
            var le="";
            var d="",t;
            var arraytag="0";//isArray
            if(ulvo!=null){
              if(ulvo.length==undefined){
                 ul[0]=ulvo;
                 arraytag="1";
                 le=1;
              }else{
                 ul=ulvo;
                 le=ul.length;
              }        
              //if(edit==false){
                    for(var i = 0; i < le; i++){		
                        items = new Array();
                        ulo=ul[i];
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        items[2] = ulo["ns:productCode"];//
                        items[3] = ulo["ns:equName"];//
                        items[4] = ulo["ns:productType"];//
                        items[5] = ulo["ns:model"];//
                        items[6] = ulo["ns:unit"];//
                        t=ulo["ns:price"];if(t!=null&&t!=undefined){items[7] =  t['ns:upNumber'];}
                        t=ulo["ns:weight"];if(t!=null&&t!=undefined){items[8] =  t['ns:upNumber'];}
                        t=ulo["ns:volume"];if(t!=null&&t!=undefined){items[9] =  t['ns:upNumber'];}
                        items[10] = ulo["ns:level"];//
                        items[11] = ulo["ns:request"];//
                        items[12] = ulo["ns:remark"];//
                         items[13] = WlCustCodeVOtoArray_fun(ulo["ns:codeID"],edit);
                         items[14] = ulo["ns:pack"];
                      if(arraytag=="0"){
                        querydata[i]=items;
                      }else{
                        querydata=items;
                      }
                    }
                 /* }else{//edit==true
                    for(var i = 0; i < le; i++){		
                        items = new Array();
                        ulo=ul[i];
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        
                        items[2] = ulo["ns:productCode"];//
                        items[3] = ulo["ns:equName"];//
                        items[4] = ulo["ns:productType"];//
                        items[5] = ulo["ns:model"];//
                        items[6] = ulo["ns:unit"];//
                        t=ulo["ns:price"];if(t!=null&&t!=undefined){items[7] =  t['ns:upNumber'];}
                        t=ulo["ns:weight"];if(t!=null&&t!=undefined){items[8] =  t['ns:upNumber'];}
                        t=ulo["ns:volume"];if(t!=null&&t!=undefined){items[9] =  t['ns:upNumber'];}
                        items[10] = ulo["ns:level"];//
                        items[11] = ulo["ns:request"];//
                        items[12] = ulo["ns:remark"];//
/------------begin
/--end-------------
                         items[13] = ulo["ns:codeID"];
                         items[14] = ulo["ns:pack"];
                      if(arraytag=="0"){
                        querydata[i]=items;
                      }else{
                        querydata=items;
                      }
                    }
                  } */
            }//!=null                     
            return querydata;
}